package cn.lianwei.yonyong.service.impl;

import cn.lianwei.yonyong.dao.UserDao;
import cn.lianwei.yonyong.pojo.SysUser;
import cn.lianwei.yonyong.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserDao userDao;

    @Override
    public SysUser queryUser(SysUser user) {
        return userDao.queryUser(user);
    }


    @Override
    public int registerUser(String tel,String password) {
        return userDao.registerUser(tel,password);
    }
}
